<template>
    <div style="width: 100%">
        <el-input v-if="!isInstanceSearch" :style="inputStyle" :disabled="isDisable" v-model="properties.bindValue"> </el-input>
        <el-input v-if="isInstanceSearch" :style="inputStyle" :disabled="isDisable" v-model="properties.searchValue"> </el-input>
    </div>
</template>

<script>
export default {
    name: "YwuFormInput",
    props: ['isEdit', 'properties', 'isInstanceSearch', "isDisable"],
    computed: {
        inputStyle() {
            if (this.isEdit) {
                return "pointer-events: none;"
            } else {
                return "";
            }
        }
    }
}
</script>

<style scoped lang="less">

</style>